 
package com.mixide.ui.part.memory;

import javax.inject.Inject;
import javax.annotation.PostConstruct;

import org.eclipse.swt.widgets.Composite;

import com.mixide.ui.service.MixHolder;

import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor(onConstructor_=@Inject)
public class MemoryPart {
	
	private final MixHolder mix;
	private final MemoryLabelProvider labelProvider;
	
	@PostConstruct
	public void postConstruct(Composite parent) {
		this.initMemoryTableViewer(parent);
	}
	
	private void initMemoryTableViewer(Composite parent) {
		new MemoryTableViewer(parent, this.mix.memory(), this.labelProvider);
	}
}